package com.dandelion.business.service;

import com.dandelion.business.entity.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dandelion.business.entity.vo.role.req.RoleReqVO;
import com.dandelion.business.entity.vo.user.CurrentUser;
import com.dandelion.framework.common.R;

import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author 宋发准
 * @since 2021-12-26
 */
public interface ISysRoleService extends IService<SysRole> {

    /**
     * 角色列表
     *
     * @return {@link R}
     */
    R<List<SysRole>> roleList();

    /**
     * 添加
     *
     * @param currentUser  铜
     * @param req 要求事情
     * @return {@link R}
     */
    R<Boolean> add(CurrentUser currentUser, RoleReqVO req);

    /**
     * 查询角色
     *
     * @param id id
     * @return {@link R}
     */
    R<SysRole> queryRole(Long id);

    /**
     * 编辑菜单
     *
     * @param currentUser  铜
     * @param req 要求事情
     * @return {@link R}<{@link Boolean}>
     */
    R<Boolean> editMenu(CurrentUser currentUser, RoleReqVO req);


}
